package com.tudouji.project.produce.mapper;

import java.util.List;
import com.tudouji.project.produce.domain.Scrapapply;

/**
 * 报废单Mapper接口
 * 
 * @author tudouji
 * @date 2022-06-01
 */
public interface ScrapapplyMapper 
{
    /**
     * 查询报废单
     * 
     * @param guid 报废单ID
     * @return 报废单
     */
    public Scrapapply selectScrapapplyById(String guid);
    public Scrapapply selectScrapapplyByNewId(Long id);

    /**
     * 查询报废单列表
     * 
     * @param scrapapply 报废单
     * @return 报废单集合
     */
    public List<Scrapapply> selectScrapapplyList(Scrapapply scrapapply);

    /**
     * 新增报废单
     * 
     * @param scrapapply 报废单
     * @return 结果
     */
    public int insertScrapapply(Scrapapply scrapapply);

    /**
     * 修改报废单
     * 
     * @param scrapapply 报废单
     * @return 结果
     */
    public int updateScrapapply(Scrapapply scrapapply);

    /**
     * 删除报废单
     * 
     * @param guid 报废单ID
     * @return 结果
     */
    public int deleteScrapapplyById(String guid);

    /**
     * 批量删除报废单
     * 
     * @param guids 需要删除的数据ID
     * @return 结果
     */
    public int deleteScrapapplyByIds(String[] guids);

    List<Scrapapply> findDetail(Scrapapply sa);
    Scrapapply getDetail(String id);

    List<Scrapapply> selectScrapapplyPendingList(Scrapapply scrapapply);

    List<Scrapapply> selectScrapapplyByDep(Scrapapply scrapapply);

    List<Scrapapply> selectScrapapplyByUser(Scrapapply scrapapply);

    Double getSumWeight(Scrapapply scrap);

    List<Scrapapply> rpt_scraptype(Scrapapply witem);

    List<Scrapapply> rpt_scrap(Scrapapply witem);
}
